package kr.co.doriclassic.check05;

public class LeapYear {
	private int iYear;
	boolean isOk;
	
	public LeapYear(int iYear){
		this.iYear = iYear;
	}
	
	public boolean proYear(){
		if(iYear%4==0&&iYear%100!=0||iYear%400==0)
			return true;
		else 
			return false;
	}
	
	public void prtYear(){
		isOk=proYear();
		if(isOk==true)
			System.out.println("윤년이 맞아요.");
		else
			System.out.println("윤년이 아니어요.");
	}	
}